import {Graph} from "@/business/entity/graph/graph.entity";
import type {Coordinate} from "@/business/entity/coordinate/coordinate.entity";
import type {Style} from "@/business/entity/style/style.entity";

/**
 *  圆形实体对象
 * @author JiangXincan
 * @date 2020/5/19 13:38
 */
export class CircleGraph extends Graph {

    // 半径
    private _r: number = 30;

    constructor(id: string, center: Coordinate, r: number, style: Style) {
        super(id, center, style);
        this._r = r;
    }

    get r(): number {
        return this._r;
    }

    set r(value: number) {
        this._r = value;
    }
}